// 导入express
const express=require('express');
// 创建路由对象
const router=express.Router();


// 创建路由规则
router.get('/login',(req, res) => {
    res.send('login.html');
});
router.get('/search',(req, res) => {
    res.send('search.html');
});
router.get('/admin',(req, res) => {
    res.send('admin.html');
});
router.get('/setting',(req, res) => {
    res.send('setting.html');
});

// 暴漏router
module.exports=router;